package com.office.forum.manage.likePosts.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.office.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.office.common.annotation.Excel;

/**
 * 用户收藏帖子记录对象 forum_favorite_posts
 * 
 * @author ruoyi
 * @date 2025-07-05
 */
public class ForumFavoritePosts extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收藏记录ID */
    private Long favoriteId;

    /** 收藏用户的ID */
    @Excel(name = "收藏用户的ID")
    private Long userId;

    /** 被收藏的帖子ID */
    @Excel(name = "被收藏的帖子ID")
    private Long postId;

    /** 收藏时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收藏时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    public void setFavoriteId(Long favoriteId) 
    {
        this.favoriteId = favoriteId;
    }

    public Long getFavoriteId() 
    {
        return favoriteId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setPostId(Long postId) 
    {
        this.postId = postId;
    }

    public Long getPostId() 
    {
        return postId;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("favoriteId", getFavoriteId())
            .append("userId", getUserId())
            .append("postId", getPostId())
            .append("createdAt", getCreatedAt())
            .append("remark", getRemark())
            .toString();
    }
}
